package com.jrfid.smartcabinet.demo.model

import com.jrfid.smartcabinet.demo.utils.KTDataUtils
import com.xuhao.didi.core.iocore.interfaces.ISendable

class SocketMsgModel constructor(private var hexText: String) : ISendable {


    override fun parse(): ByteArray {
        return KTDataUtils.hexToByteArray(hexText.replace(" ",""))
    }

    override fun toString(): String {
        return hexText
    }
}